package com.tencent.qf.user.dal.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.tencent.qf.user.dal.entity.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tencent.qf.user.dto.UserBasicInfo;
import com.tencent.qf.user.dto.UserOpenIdInfo;
import com.tencent.qf.user.dto.request.TeamUserInfoRequest;
import com.tencent.qf.user.dto.request.UserInfoByUidUnionIdRequest;
import com.tencent.qf.user.dto.response.IrisUserInfoDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author liuxuan
 * @since 2023-03-08
 */
@DS("irisBusinessData")
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    List<IrisUserInfoDTO> teamUserInfo(TeamUserInfoRequest request);

    com.tencent.qf.user.dal.UserInfo userInfoByUid(UserInfoByUidUnionIdRequest request);

    List<UserBasicInfo> getUserBasicInfos(@Param("uids") List<String> uids);

    UserOpenIdInfo getOpenIdInfo(@Param("unionId") String unionId);
}
